package my.springboot.async;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class AsyncService {
	
	@Log("class")
	@Async
	public void doWork(int i){
		log.debug("【开始】"+i);
		log.debug("【结束】"+i);
	}
	
}
